Programming Heterogeneous MPSoCs by Jerónimo Castrillón Mazo & Rainer Leupers

Programming Heterogeneous MPSoCs by Jerónimo Castrillón Mazo & Rainer Leupers

Author:Jerónimo Castrillón Mazo & Rainer Leupers
Language: eng
Format: epub
Publisher: Springer International Publishing, Cham


5.4.1.3 Generation for DLP

For DLP, the entire loop is copied to a new function. The data flow information in the loop header indicates which variables have to be communicated before and after the loop. As in TLP, variables are privatized in the function. An example of code generation for DLP is in Listing 5.5. Two new functions are created, one that spawns the threads and collects the results (dlp_f_spawn in Line 11) and a function that is used to implement the copies of the for loop (parLoop5 in Line 31). In the example, the loop is split into four copies.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.